package com.dios.mirage.component.fields;

import net.rim.device.api.ui.Field;
import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.ui.container.PopupScreen;

public class NavigationViewPopupField extends NavigationField {

	private PopupScreen screen;
	
	public NavigationViewPopupField(String text, Field field, PopupScreen screen) {
		super(text, field);
		this.screen = screen;
		setMargin(0, 0, 0, 0);
	}

	protected boolean navigationClick(int status, int time) {
		UiApplication.getUiApplication().popScreen(screen);
		return super.navigationClick(status, time);
	}
	
	

}
